import request from '@/utils/request'
// 封装注册
export const register = (data) => {
  return request({
    method: 'POST',
    url: '/user/register',
    data
  })
}
// 封装登录
export const login = (data) => {
  return request({
    method: 'POST',
    url: '/user/login',
    data
  })
}
